
function Tab(el, option)
{
    this.el = document.querySelector(el)
    this.kaishi() 
}

Tab.prototype.kaishi = function() {
    this.biaoti()
}
Tab.prototype.biaoti = function() {
   let ulliobj=this.el.querySelectorAll('ul li')
   ulliobj.forEach((item,i)=>{
       item.onmouseover=()=>{
           this.el.querySelector('ul li.active').className=''
           item.className='active'
           this.el.querySelector('ol li.active').className=''
           this.el.querySelectorAll('ol li')[i].className='active'
       }
   })
}